package com.addressbook.fw;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class WebDriverSingleton {
	 
	private static WebDriver webDriver = null;

	private WebDriverSingleton() {
		 
	}

	public static WebDriver getWebDriver() {
		if (webDriver == null){
			webDriver = new FirefoxDriver();
		}
		return webDriver;
	}

	public static void killWebDriver() {
		if (webDriver != null){
			webDriver.quit();
		}
	}
}